<?php

namespace Usb;
/**
 *@api addForm录入操作；editForm编辑操作；Form其他表单操作
 */
interface UserUsb
{
    const type = [
       0=>'selUser',//分页多参
       1=>'editUser',//编辑用户
       2=>'addUser',//添加用户
       3=>'delUser',//删除用户
   ];

 /**
  * @Copyright: ©TS-Frame-Tiny-Speed
  * @description: 分页多参
  * @param  GET ?type=0&name=&ucid=&flag=&pageNum=1&pageSize=10
  * @return JSON
  * @author: TS
  * @Date: 2021-04-19 07:52:16
  */
  public function selUser($GET);

 /**
  * @Copyright: ©TS-Frame-Tiny-Speed
  * @description: 编辑用户
  * @param  POST {"type": "1","editForm":{"uid": "1","name": "22","flag":"1"}}
  * @return JSON
  * @author: TS
  * @Date: 2021-04-19 07:52:16
  */
  public function editUser($POST);


  /**
  * @Copyright: ©TS-Frame-Tiny-Speed
  * @description: 添加用户
  * @param  POST {"type": "2","addForm":{"account": "ts","password":"123456","name":"1","flag":"1","ucid":"1"}}
  * @return JSON
  * @author: TS
  * @Date: 2021-04-19 07:52:16
  */
  public function addUser($POST);


  /**
  * @Copyright: ©TS-Frame-Tiny-Speed
  * @description: 删除用户
  * @param  POST {"type": 3,"Form":{"ids":[[11,12]]}}
  * @return JSON
  * @author: TS
  * @Date: 2021-04-19 07:52:16
  */
  public function delUser($POST);

}
